<?php

namespace MUD;

class Item{
    public $item_id;
    public $name;
    public $value;
    public $description;
    public $ground;
    public $class;
    public $spawn;
    public $location;
    public $location_type;
    
    public function __construct($id, $class, $name, $description, $ground, $value, $spawn, $location){
        $this->item_id = $id;
        $this->name = $name;
        $this->value=$value;
        $this->description=$description;
        $this->ground=$ground;
        $this->class=$class;
        $this->location=$location;
        $this->spawn=$spawn;
        $this->location_type='map';
    }
    
    public function updateLocation($new_location, $location_type){
        $this->location = $new_location;
        $this->location_type = $location_type;
    }
}